package com.kfm.service.impl;

import com.kfm.anno.M;
import com.kfm.service.AccountService;
import org.springframework.stereotype.Service;

@Service
public class AccountServiceImpl implements AccountService {

    @Override
    @M("保存模块")
    public int save() {
        System.out.println("AccountServiceImpl -->save");
//        try {
//            throw new RuntimeException("ex");
//        }catch (Exception ex){
//            System.out.println("处理异常");
//        }
       return 0;
    }

    @Override
    @M("存储模块")
    public int save2(){
        System.out.println("AccountServiceImpl -->save2");
        return 0;
    }

    @Override
    @M("删除模块")
    public void delete(String id) {
        System.out.println("AccountServiceImpl -->delete(id)");
    }
}
